# Contributor: Dmitry Zakharchenko <dmitz@disroot.org>
# Maintainer: Dmitry Zakharchenko <dmitz@disroot.org>
pkgname=nsxiv
pkgver=30
pkgrel=0
pkgdesc="Neo Simple X Image Viewer"
url="https://nsxiv.github.io/nsxiv/"
arch="all"
license="GPL-2.0-or-later"
options="!check" # no test suite
makedepends="
	giflib-dev
	imlib2-dev
	libexif-dev
	libwebp-dev
	libx11-dev
	libxft-dev
	"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/nsxiv/nsxiv/archive/v$pkgver.tar.gz"

prepare() {
	default_prepare
	ln -s config.def.h config.h
}

build() {
	make
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" install-all
}

sha512sums="
2c852790c5940a8995a5c8a152b6f74198de4640e3827164c8e99855dc06b921c4601ac712a16c801071c656da4a6cd839a6590894f6ab86af35e90b30a8f5af  nsxiv-30.tar.gz
"
